/**
 * Created by zhoulin on 2019/3/29.
 */

//dev :开发环境，prod:生产环境，test:测试环境
var _ENV = "test";

//权限编码herader名称
var _PERM_CODING_HEADER_VALUE = "permCoding";
var _TOKEN_HEADER_VALUE = "Authorization";
var _LOGIN_TIMEOUT_CODE = 5000; //系统登录超时code值

var _LOGIN_PAGE = "";
var _DEV_LOGIN_PAGE = "http://localhost:45497/html-root/st-sound-root/business/login.html";
var _PROD_LOGIN_PAGE = "https://api.cncarav.com/html-root/st-sound-root/business/login.html";
var _TEST_LOGIN_PAGE = "https://test.cncarav.com/html-root/st-sound-root/business/login.html";

//请求主机配置
var _HOST = ""; //服务请求
var _DEV_HOST = "http://127.0.0.1";
// var _DEV_HOST = "https://www.boxuejia.com";
var _PROD_HOST = "https://api.cncarav.com";
var _TEST_HOST = "https://test.cncarav.com";

// 代理配置
var _PROXY = {}
var _DEV_PROXY = {
    activity_articles_service: ":8084/articlesService",
    admin_service: ":8081/adminService",
    business_manage_service: ":8082/businessManageService",
    common_service: ":8083/commonService",
    wechat_service: ":8087/wechatService",
    product_service: ":8085/productService",
    marketing_service: ":8088/marketingService",
    user_center_service: ":8086/userCenterService",
}
/*var _DEV_PROXY = {
    activity_articles_service:"/articlesService",
    admin_service:"/adminService",
    business_manage_service:"/businessManageService",
    common_service:"/commonService",
    wechat_service:":/wechatService",
    product_service:":/productService",
    marketing_service:"/marketingService",
    user_center_service:":/userCenterService",
}*/
var _PROD_PROXY = {
    activity_articles_service: "/articlesService",
    admin_service: "/adminService",
    business_manage_service: "/businessManageService",
    common_service: "/commonService",
    wechat_service: "/wechatService",
    product_service: ":/productService",
    marketing_service: "/marketingService",
    user_center_service: ":/userCenterService",
}
var _TEST_PROXY = {
    activity_articles_service: "/articlesService",
    admin_service: "/adminService",
    business_manage_service: "/businessManageService",
    common_service: "/commonService",
    wechat_service: "/wechatService",
    product_service: ":/productService",
    marketing_service: "/marketingService",
    user_center_service: ":/userCenterService",
}

if ("dev" == _ENV) {
    _HOST = _DEV_HOST;
    _PROXY = _DEV_PROXY;
    _LOGIN_PAGE = _DEV_LOGIN_PAGE;
} else if ("prod" == _ENV) {
    _HOST = _PROD_HOST;
    _PROXY = _PROD_PROXY;
    _LOGIN_PAGE = _PROD_LOGIN_PAGE;
} else {
    _HOST = _TEST_HOST;
    _PROXY = _TEST_PROXY;
    _LOGIN_PAGE = _TEST_LOGIN_PAGE;
}

//接口配置
var _API = {

    //////////////////////////////////////////////
    //--商户管理服务-->businessManageService
    //////////////////////////////////////////////

    //主页、登陆-->IndexController
    business_manage_index_doLogin: _PROXY.business_manage_service + "/api/index/doLogin",
    business_manage_index_loginOut: _PROXY.business_manage_service + "/api/index/loginOut",//GET /businessManageService/api/index/loginOut 退出登录
    business_manage_index_getInfoById: _PROXY.business_manage_service + "/api/index/getInfoById/",//GET /businessManageService/api/index/getInfoById/{id} 根据主键id查询
    business_manage_index_getCompanyInfo: _PROXY.business_manage_service + "/api/index/getCompanyInfo/",//GET /businessManageService/api/index/getCompanyInfo/{companyId} 根据登录人统一登录id(loginId 后台自动获取)和机构id，查询当前人所在的机构，以及授权的单位信息
    business_manage_index_authorizedLogin: _PROXY.business_manage_service + "/api/index/authorizedLogin/",//GET /businessManageService/api/index/authorizedLogin/{companyId}/{deptId} 点击部门（校区）传入机构id、部门id重新实现后台登录更新token，获取权限等等
    business_manage_index_getMenu: _PROXY.business_manage_service + "/api/index/getMenu/",//GET /businessManageService/api/index/getMenu/{pid}/{companyId}/{deptId} 根据权限父级id查询权限目录
    business_manage_index_isOldPassword: _PROXY.business_manage_service + "/api/index/isOldPassword",//GET /businessManageService/api/index/isOldPassword 修改密码时候判断原始密码是否正确
    business_manage_index_updatePs: _PROXY.business_manage_service + "/api/index/updatePs",//POST /businessManageService/api/index/updatePs 修改密码
    business_manage_index_isUsername: _PROXY.business_manage_service + "/api/index/isUsername",//GET /businessManageService/api/index/isUsername 判断账号情况（是否禁用等等）

    //运营商管理员账号表 前端控制器-->SysBusinessController
    business_manage_sysBusiness_list: _PROXY.business_manage_service + "/api/sysBusiness/list",//GET /businessManageService/api/sysAdmin/list 获取用户列表
    business_manage_sysBusiness_getUserInfo: _PROXY.business_manage_service + "/api/sysBusiness/getUserInfo",//GET /businessManageService/api/sysAdmin/getUserInfo 根据token查询一条账户基本数据
    business_manage_sysBusiness_add: _PROXY.business_manage_service + "/api/sysBusiness/add",//POST /businessManageService/api/sysAdmin/add 添加平台管理账号
    business_manage_sysBusiness_update: _PROXY.business_manage_service + "/api/sysBusiness/update",//PUT /businessManageService/api/sysAdmin/update 修改添加平台管理账号
    business_manage_sysBusiness_batchStatus: _PROXY.business_manage_service + "/api/sysBusiness/batchStatus",//PUT /businessManageService/api/sysAdmin/batchStatus 处理平台管理员账号状态，可批量（List）
    business_manage_sysBusiness_delete: _PROXY.business_manage_service + "/api/sysBusiness/delete/",//PUT /businessManageService/api/sysAdmin/delete/{ids} 根据角色ids删除角色 和 权限角色表数据
    business_manage_sysBusiness_getInfoById: _PROXY.business_manage_service + "/api/sysBusiness/getInfoById/",//GET /businessManageService/api/sysAdmin/getInfoById/{id} 根据主键id查询
    business_manage_sysBusiness_resetPS: _PROXY.business_manage_service + "/api/sysBusiness/resetPS",//PUT /businessManageService/api/sysAdmin/resetPS 重置平台管理员密码

    //运营商管理员角色表 前端控制器-->SysRoleController
    business_manage_sysRole_list: _PROXY.business_manage_service + "/api/sysRole/list",//GET /businessManageService/api/sysRole/list 获取角色列表
    business_manage_sysRole_add: _PROXY.business_manage_service + "/api/sysRole/add",//POST /businessManageService/api/sysRole/add 添加角色
    business_manage_sysRole_update: _PROXY.business_manage_service + "/api/sysRole/update",//PUT /businessManageService/api/sysRole/update 修改角色
    business_manage_sysRole_delete: _PROXY.business_manage_service + "/api/sysRole/delete/",//PUT /businessManageService/api/sysRole/delete/{ids} 根据角色ids删除角色 和 权限角色表数据
    business_manage_sysRole_getInfoById: _PROXY.business_manage_service + "/api/sysRole/getInfoById/",//GET /businessManageService/api/sysRole/getInfoById/{id} 根据主键id查询
    business_manage_sysRole_getAllRole: _PROXY.business_manage_service + "/api/sysRole/getAllRole/",//GET /businessManageService/api/sysRole/getAllRole 查询平台管理员的角色
    business_manage_sysRole_getUserRole: _PROXY.business_manage_service + "/api/sysRole/getUserRole/",//GET /businessManageService/api/sysRole/getUserRole/{id} 查询平台管理员拥有的角色
    business_manage_sysRole_modifyUserRole: _PROXY.business_manage_service + "/api/sysRole/modifyUserRole",//PUT /businessManageService/api/sysRole/modifyUserRole 分配平台管理员角色
    business_manage_sysRole_modifyUserRoles: _PROXY.business_manage_service + "/api/sysRole/modifyUserRoles",//PUT /businessManageService/api/sysRole/modifyUserRole 分配平台管理员角色

    //permission 权限表 前端控制器-->SysPermissionController
    business_manage_sysPermission_getPermissionZTreeNodes: _PROXY.business_manage_service + "/api/sysPermission/getPermissionZTreeNodes/",//GET /businessManageService/api/sysPermission/getPermissionZTreeNodes/{roleId}/{isOperator} 查询权限树形展示（roleId不传表示查全部） 并且选中角色拥有的树节点
    business_manage_sysPermission_modifyRolePermission: _PROXY.business_manage_service + "/api/sysPermission/modifyRolePermission",//PUT /businessManageService/api/sysPermission/modifyRolePermission 分配角色权限

    //学校 前端控制器-->SchoolController
    business_manage_school_getInfoById: _PROXY.business_manage_service + "/api/school/getInfoById/",//GET /businessManageService/api/school/getInfoById/{id} 根据主键id查询一条数据

    //部门 前端控制器-->SysDepartmentController
    business_manage_sysDepartment_add: _PROXY.business_manage_service + "/api/sysDepartment/add",//POST /businessManageService/api/sysDepartment/add 添加类型非学校的组织结构
    business_manage_sysDepartment_addSchool: _PROXY.business_manage_service + "/api/sysDepartment/addSchool/",//POST /businessManageService/api/sysDepartment/addSchool/{parentId}/{sort} 添加类型为校区的组织结构
    business_manage_sysDepartment_delete: _PROXY.business_manage_service + "/api/sysDepartment/delete/",//PUT /businessManageService/api/sysDepartment/delete/{id} 根据组织结构id删除组织结构和school表数据
    business_manage_sysDepartment_getInfoById: _PROXY.business_manage_service + "/api/sysDepartment/getInfoById/",//GET /businessManageService/api/sysDepartment/getInfoById/{id} 根据主键id查询一条数据
    business_manage_sysDepartment_getUserSecondList: _PROXY.business_manage_service + "/api/sysDepartment/getUserSecondList/",//GET /businessManageService/api/sysDepartment/getUserSecondList/{bid} 查询用户拥有机构的二级组织
    business_manage_sysDepartment_list: _PROXY.business_manage_service + "/api/sysDepartment/list",//GET /businessManageService/api/sysDepartment/list 查询组织结构列表
    business_manage_sysDepartment_secondList: _PROXY.business_manage_service + "/api/sysDepartment/secondList",//GET /businessManageService/api/sysDepartment/secondList 查询机构二级组织
    business_manage_sysDepartment_update: _PROXY.business_manage_service + "/api/sysDepartment/update",//PUT /businessManageService/api/sysDepartment/update 修改类型非校区的组织结构
    business_manage_sysDepartment_updateSchool: _PROXY.business_manage_service + "/api/sysDepartment/updateSchool/",//PUT /businessManageService/api/sysDepartment/updateSchool/{id}/{sort} 修改类型为校区的组织结构

    //岗位/职位表 前端控制器-->StationController
    business_manage_station_add: _PROXY.business_manage_service + "/api/station/add",//POST /businessManageService/api/station/add 添加职位
    business_manage_station_delete: _PROXY.business_manage_service + "/api/station/delete/",//PUT /businessManageService/api/station/delete/{ids} 根据职位ids删除职位 和 员工-部门-职位关联表数据
    business_manage_station_getInfoById: _PROXY.business_manage_service + "/api/station/getInfoById/",//GET /businessManageService/api/station/getInfoById/{id} 根据主键id查询一条数据
    business_manage_station_list: _PROXY.business_manage_service + "/api/station/list",//GET /businessManageService/api/station/list 获取职位列表
    business_manage_station_listAll: _PROXY.business_manage_service + "/api/station/listAll",//GET /businessManageService/api/station/listAll 获取所有职位列表
    business_manage_station_update: _PROXY.business_manage_service + "/api/station/update",//PUT /businessManageService/api/station/update 修改职位

    //员工 前端控制器-->StaffController
    business_manage_staff_add: _PROXY.business_manage_service + "/api/staff/add",//POST /businessManageService/api/staff/add 添加员工
    business_manage_staff_getInfoById: _PROXY.business_manage_service + "/api/staff/getInfoById/",//GET /businessManageService/api/staff/getInfoById/{id} 根据主键id查询一条数据
    business_manage_staff_list: _PROXY.business_manage_service + "/api/staff/list",//GET /businessManageService/api/staff/list 获取员工列表
    business_manage_staff_update: _PROXY.business_manage_service + "/api/staff/update",//GET /businessManageService/api/staff/update 修改
    business_manage_staff_delete: _PROXY.business_manage_service + "/api/staff/delete/",//GET /businessManageService/api/staff/delete/{ids} 删除

    //企业 前端控制器-->CompanyController
    business_company_list: _PROXY.business_manage_service + "/api/company/list",
    business_company_update:_PROXY.business_manage_service+"/api/company/update",
    business_company_getById:_PROXY.business_manage_service+"/api/company/getById",

    //运营商小程序端角色表 前端控制器-->AppRoleController
    business_appRole_list: _PROXY.business_manage_service + "/api/appRole/list",//GET /businessManageService/api/appRole/list 获取角色列表
    business_appRole_add: _PROXY.business_manage_service + "/api/appRole/add",//POST /businessManageService/api/appRole/add 添加角色
    business_appRole_update: _PROXY.business_manage_service + "/api/appRole/update",//PUT /businessManageService/api/appRole/update 修改角色
    business_appRole_delete: _PROXY.business_manage_service + "/api/appRole/delete/",//PUT /businessManageService/api/appRole/delete/{ids} 根据角色ids删除角色 和 权限角色表数据
    business_appRole_getInfoById: _PROXY.business_manage_service + "/api/appRole/getInfoById/",//GET /businessManageService/api/appRole/getInfoById/{id} 根据主键id查询
    business_appRole_getPermissionZTreeNodes: _PROXY.business_manage_service + "/api/appRole/getPermissionZTreeNodes",
    business_appRole_assignPermission: _PROXY.business_manage_service + "/api/appRole/assignPermission",
    business_appRole_getAllRole: _PROXY.business_manage_service + "/api/appRole/getAllRole",
    business_appRole_getUserRole: _PROXY.business_manage_service + "/api/appRole/getUserRole",
    business_appRole_modifyUserRole: _PROXY.business_manage_service + "/api/appRole/modifyUserRole",

    //////////////////////////////////////////////
    //--公共服务-->commonService
    //////////////////////////////////////////////

    //登录日志接口-->SysLogController
    common_loginlog_list: _PROXY.common_service + "/api/loginLog/list",

    //模板消息日志接口-->ModalLogController
    common_modellog_list: _PROXY.common_service + "/api/modalLog/list",

    //文件上传接口-->FileUploadController
    common_file_ossUpload: _PROXY.common_service + "/api/file/ossUpload",
    common_file_ossUploadBase64FileStr: _PROXY.common_service + "/api/file/ossUploadBase64FileStr",
    common_file_ossWe: _PROXY.common_service + "/api/file/uploadwe",

    //查询字典接口-->SysDictionaryController
    common_dic_list: _PROXY.common_service + "/api/sysDictionary/list",
    common_dic_add: _PROXY.common_service + "/api/sysDictionary/add",
    common_dic_update: _PROXY.common_service + "/api/sysDictionary/update",
    common_dic_delete: _PROXY.common_service + "/api/sysDictionary/delete",
    common_dic_getById: _PROXY.common_service + "/api/sysDictionary/getById",
    common_dic_dicList: _PROXY.common_service + "/api/sysDictionary/dicList",

    //banner接口-->BannerController
    common_banner_list: _PROXY.common_service + "/api/banner/list",
    common_banner_add: _PROXY.common_service + "/api/banner/add",
    common_banner_update: _PROXY.common_service + "/api/banner/update",
    common_banner_delete: _PROXY.common_service + "/api/banner/delete",
    common_banner_getById: _PROXY.common_service + "/api/banner/getById",

    //公共类别接口-->CommonClassController
    common_class_list: _PROXY.common_service + "/api/commonClass/list",
    common_class_add: _PROXY.common_service + "/api/commonClass/add",
    common_class_update: _PROXY.common_service + "/api/commonClass/update",
    common_class_delete: _PROXY.common_service + "/api/commonClass/delete",
    common_class_getById: _PROXY.common_service + "/api/commonClass/getById",

    //消息接口-->MessageController
    common_message_list: _PROXY.common_service + "/api/message/list",
    common_message_add: _PROXY.common_service + "/api/message/add",
    common_message_update: _PROXY.common_service + "/api/message/update",
    common_message_delete: _PROXY.common_service + "/api/message/delete",
    common_message_getById: _PROXY.common_service + "/api/message/getById",

    //站点信息接口-->SiteInfoController
    common_siteInfo_getDetail: _PROXY.common_service + "/api/siteInfo/getDetail",
    common_siteInfo_update: _PROXY.common_service + "/api/siteInfo/update",
    common_siteInfo_add: _PROXY.common_service + "/api/siteInfo/add",

    //举报接口-->ReportFeedbackController
    common_reportFeedback_list: _PROXY.common_service + "/api/reportFeedback/list",
    common_reportFeedback_update: _PROXY.common_service + "/api/reportFeedback/update",
    common_reportFeedback_delete: _PROXY.common_service + "/api/reportFeedback/delete",

    //标签接口-->TagController
    common_tag_list: _PROXY.common_service + "/api/tag/list",
    common_tag_add: _PROXY.common_service + "/api/tag/add",
    common_tag_update: _PROXY.common_service + "/api/tag/update",
    common_tag_delete: _PROXY.common_service + "/api/tag/delete",
    common_tag_getById: _PROXY.common_service + "/api/tag/getById",
    common_tag_getTagsByType: _PROXY.common_service + "/api/tag/getTagsByType",

    //机构之间数据权限表（某个机构可以查询哪些机构数据） 前端控制器-->CompanyDataPerimController
    common_companyDataPerim_list: _PROXY.common_service + "/api/companyDataPerim/list",
    common_companyDataPerim_add: _PROXY.common_service + "/api/companyDataPerim/add",
    common_companyDataPerim_delete: _PROXY.common_service + "/api/companyDataPerim/delete",
    common_companyDataPerim_addPerim: _PROXY.common_service + "/api/companyDataPerim/addPerim",

    //////////////////////////////////////////////
    //--文章服务-->commonService
    //////////////////////////////////////////////

    //文章类型接口-->ArticleTypeController
    actArt_articleType_list: _PROXY.activity_articles_service + "/api/articleType/list",
    actArt_articleType_add: _PROXY.activity_articles_service + "/api/articleType/add",
    actArt_articleType_update: _PROXY.activity_articles_service + "/api/articleType/update",
    actArt_articleType_delete: _PROXY.activity_articles_service + "/api/articleType/delete",
    actArt_articleType_getById: _PROXY.activity_articles_service + "/api/articleType/getById",
    actArt_articleType_getArticleType: _PROXY.activity_articles_service + "/api/articleType/getArticleType",

    //文章发布表 前端控制器-->ArticleController
    actArt_article_list: _PROXY.activity_articles_service + "/api/article/list",
    actArt_article_add: _PROXY.activity_articles_service + "/api/article/add",
    actArt_article_update: _PROXY.activity_articles_service + "/api/article/update",
    actArt_article_delete: _PROXY.activity_articles_service + "/api/article/delete",
    actArt_article_getById: _PROXY.activity_articles_service + "/api/article/getById",
    actArt_article_push: _PROXY.activity_articles_service + "/api/article/batchPush",
    actArt_article_getWxArticle: _PROXY.activity_articles_service + "/api/article/getWxArticle",

    //已发布文章接口-->ArticlePushController
    actArt_articlePush_list: _PROXY.activity_articles_service + "/api/articlePush/list",
    actArt_articlePush_add: _PROXY.activity_articles_service + "/api/articlePush/add",
    actArt_articlePush_update: _PROXY.activity_articles_service + "/api/articlePush/update",
    actArt_articlePush_delete: _PROXY.activity_articles_service + "/api/articlePush/delete",
    actArt_articlePush_getById: _PROXY.activity_articles_service + "/api/articlePush/getById",
    actArt_articlePush_cancelPush: _PROXY.activity_articles_service + "/api/articlePush/cancelPush",
    actArt_articlePush_recoveryPush: _PROXY.activity_articles_service + "/api/articlePush/recoveryPush",

    actArt_activityClass_list: _PROXY.activity_articles_service + "/api/activityClass/list",
    actArt_activityClass_add: _PROXY.activity_articles_service + "/api/activityClass/add",
    actArt_activityClass_update: _PROXY.activity_articles_service + "/api/activityClass/update",
    actArt_activityClass_delete: _PROXY.activity_articles_service + "/api/activityClass/delete",
    actArt_activityClass_getById: _PROXY.activity_articles_service + "/api/activityClass/getById",
    actArt_activityType_getActivityClass: _PROXY.activity_articles_service + "/api/activityClass/getActivityClass",

    actArt_activity_list: _PROXY.activity_articles_service + "/api/activity/list",
    actArt_activity_simpleList: _PROXY.activity_articles_service + "/api/activity/simpleList",
    actArt_activity_add: _PROXY.activity_articles_service + "/api/activity/add",
    actArt_activity_update: _PROXY.activity_articles_service + "/api/activity/update",
    actArt_activity_delete: _PROXY.activity_articles_service + "/api/activity/delete",
    actArt_activity_getById: _PROXY.activity_articles_service + "/api/activity/getById",
    actArt_activity_selectSignUpList: _PROXY.activity_articles_service + "/api/activity/selectSignUpList",
    actArt_activity_push: _PROXY.activity_articles_service + "/api/activity/push",
    actArt_activity_batchSign: _PROXY.activity_articles_service + "/api/activity/batchSign",
    actArt_activity_remindSign: _PROXY.activity_articles_service + "/api/activity/remindSign",
    actArt_activity_remindPay: _PROXY.activity_articles_service + "/api/activity/remindPay",
    actArt_activity_remindSelf: _PROXY.activity_articles_service + "/api/activity/remindSelf",
    actArt_activity_cancelPush: _PROXY.activity_articles_service + "/api/activity/cancelPush",
    actArt_activity_top: _PROXY.activity_articles_service + "/api/activity/top",
    actArt_activity_cancelTop: _PROXY.activity_articles_service + "/api/activity/cancelTop",
    actArt_activity_getUrl: _PROXY.activity_articles_service + "/api/activity/getUrl",
    actArt_activity_getByAddress: _PROXY.activity_articles_service + "/api/activity/getByAddress",

    actArt_activityPlace_list: _PROXY.activity_articles_service + "/api/activityPlace/list",
    actArt_activityPlace_addPlace: _PROXY.activity_articles_service + "/api/activityPlace/addPlace",
    actArt_activityPlace_addColumn: _PROXY.activity_articles_service + "/api/activityPlace/addColumn",
    actArt_activityPlace_addRow: _PROXY.activity_articles_service + "/api/activityPlace/addRow",
    actArt_activityPlace_batchDisable: _PROXY.activity_articles_service + "/api/activityPlace/batchDisable",
    actArt_activityPlace_batchEnable: _PROXY.activity_articles_service + "/api/activityPlace/batchEnable",
    actArt_activityPlace_update: _PROXY.activity_articles_service + "/api/activityPlace/update",
    actArt_activityPlace_delete: _PROXY.activity_articles_service + "/api/activityPlace/delete",
    actArt_activityPlace_getById: _PROXY.activity_articles_service + "/api/activityPlace/getById",
    actArt_activityPlace_getPlaces: _PROXY.activity_articles_service + "/api/activityPlace/getPlaces",

    //报表接口-->PaperController
    actArt_paper_list: _PROXY.activity_articles_service + "/api/paper/list",
    actArt_paper_infoList: _PROXY.activity_articles_service + "/api/paper/infoList",
    actArt_paper_refuseRefund: _PROXY.activity_articles_service + "/api/paper/refuseRefund",

    actArt_review_list: _PROXY.activity_articles_service + "/api/review/list",
    actArt_review_add: _PROXY.activity_articles_service + "/api/review/add",
    actArt_review_update: _PROXY.activity_articles_service + "/api/review/update",
    actArt_review_delete: _PROXY.activity_articles_service + "/api/review/delete",
    actArt_review_getById: _PROXY.activity_articles_service + "/api/review/getById",

    actArt_activitySales_list: _PROXY.activity_articles_service + "/api/activitySales/list",
    actArt_activitySales_add: _PROXY.activity_articles_service + "/api/activitySales/add",
    actArt_activitySales_update: _PROXY.activity_articles_service + "/api/activitySales/update",
    actArt_activitySales_delete: _PROXY.activity_articles_service + "/api/activitySales/delete",
    actArt_activitySales_getById: _PROXY.activity_articles_service + "/api/activitySales/getById",
    actArt_activitySales_getParents: _PROXY.activity_articles_service + "/api/activitySales/getParents",
    actArt_activitySales_getchildren: _PROXY.activity_articles_service + "/api/activitySales/getchildren",

    //////////////////////////////////////////////
    //--营销服务-->commonService
    //////////////////////////////////////////////

    //营销设置表 前端控制器-->MarketingSetingController
    marketing_marketingSeting_getMarketingSetting: _PROXY.marketing_service + "/api/marketingSeting/getMarketingSetting",
    marketing_marketingSeting_save: _PROXY.marketing_service + "/api/marketingSeting/save",

    //优惠券表（只有添加，删除，发布，失效等操作） 前端控制器-->CouponController
    marketing_coupon_list: _PROXY.marketing_service + "/api/coupon/list",
    marketing_coupon_add: _PROXY.marketing_service + "/api/coupon/add",
    marketing_coupon_batchStatus: _PROXY.marketing_service + "/api/coupon/batchStatus",
    marketing_coupon_delete: _PROXY.marketing_service + "/api/coupon/delete",

    //优惠券发布表（只有查看领取记录，，修改状态，删除等操作） 前端控制器-->CouponPushController
    marketing_couponPush_list: _PROXY.marketing_service + "/api/couponPush/list",
    marketing_couponPush_batchPushCoupon: _PROXY.marketing_service + "/api/couponPush/batchPushCoupon",
    marketing_couponPush_batchStatus: _PROXY.marketing_service + "/api/couponPush/batchStatus",
    marketing_couponPush_delete: _PROXY.marketing_service + "/api/couponPush/delete",
    marketing_couponPush_getCouponPushUserLog: _PROXY.marketing_service + "/api/couponPush/getCouponPushUserLog",
    marketing_couponPush_getCouponPushUserUseLog: _PROXY.marketing_service + "/api/couponPush/getCouponPushUserUseLog",
    marketing_couponPush_getCouponPushList: _PROXY.marketing_service + "/api/couponPush/getCouponPushList",

    //积分配置表 前端控制器-->IntegralConfigController
    marketing_integralConfig_list: _PROXY.marketing_service + "/api/integralConfig/list",
    marketing_integralConfig_add: _PROXY.marketing_service + "/api/integralConfig/add",
    marketing_integralConfig_update: _PROXY.marketing_service + "/api/integralConfig/update",
    marketing_integralConfig_getInfoById: _PROXY.marketing_service + "/api/integralConfig/getInfoById",
    marketing_integralConfig_batchStatus: _PROXY.marketing_service + "/api/integralConfig/batchStatus",
    marketing_integralConfig_delete: _PROXY.marketing_service + "/api/integralConfig/delete",

    //用户积分（使用）记录表 前端控制器-->IntegralUserLogController
    marketing_integralUserLog_list: _PROXY.marketing_service + "/api/integralUserLog/list",
    marketing_integralUserLog_add: _PROXY.marketing_service + "/api/integralUserLog/add",

    //支付控制器-->
    wechat_pay_refund: _PROXY.wechat_service + "/api/pay/refund",
    wechat_order_findPayOrder: _PROXY.wechat_service + "/api/order/findPayOrder",
    wechat_order_findOrder: _PROXY.wechat_service + "/api/order/findOrder",
    wechat_wechat_getQrCode: _PROXY.wechat_service + "/api/wechat/getQrCode",

    user_orderInfo_getSimpleInfos: _PROXY.user_center_service + "/api/orderInfo/getSimpleInfos",
    user_orderInfo_getSimpleGoods: _PROXY.user_center_service + "/api/orderInfo/getSimpleGoods",

    user_orderInfo_list: _PROXY.user_center_service + "/api/orderInfo/list",
    user_orderInfo_add: _PROXY.user_center_service + "/api/orderInfo/add",
    user_orderInfo_update: _PROXY.user_center_service + "/api/orderInfo/update",
    user_orderInfo_delete: _PROXY.user_center_service + "/api/orderInfo/delete",
    user_orderInfo_getById: _PROXY.user_center_service + "/api/orderInfo/getById",
    user_orderList_setStruts: _PROXY.user_center_service + "/api/orderList/setStruts",

    user_member_list: _PROXY.user_center_service + "/api/member/list",
    user_member_orderList: _PROXY.user_center_service + "/api/member/orderList",
    user_member_add: _PROXY.user_center_service + "/api/member/add",
    user_member_update: _PROXY.user_center_service + "/api/member/update",
    user_member_delete: _PROXY.user_center_service + "/api/member/delete",
    user_member_getById: _PROXY.user_center_service + "/api/member/getById",

    user_orderTrackRule_list: _PROXY.user_center_service + "/api/orderTrackRule/list",
    user_orderTrackRule_orderList: _PROXY.user_center_service + "/api/orderTrackRule/orderList",
    user_orderTrackRule_add: _PROXY.user_center_service + "/api/orderTrackRule/add",
    user_orderTrackRule_update: _PROXY.user_center_service + "/api/orderTrackRule/update",
    user_orderTrackRule_delete: _PROXY.user_center_service + "/api/orderTrackRule/delete",
    user_orderTrackRule_getById: _PROXY.user_center_service + "/api/orderTrackRule/getById",

    user_message_selectCommentByRelationIdAndType: _PROXY.user_center_service + "/api/message/selectCommentByRelationIdAndType",

    user_certificate_list: _PROXY.user_center_service + "/api/certificate/list",
    user_certificate_add: _PROXY.user_center_service + "/api/certificate/add",
    user_certificate_update: _PROXY.user_center_service + "/api/certificate/update",
    user_certificate_delete: _PROXY.user_center_service + "/api/certificate/delete",
    user_certificate_getById: _PROXY.user_center_service + "/api/certificate/getById",
    user_certificate_certificateList: _PROXY.user_center_service + "/api/certificate/certificateList",
    user_certificate_updateRelation: _PROXY.user_center_service + "/api/certificate/updateRelation",

    user_orderTrackRelation_add: _PROXY.user_center_service + "/api/orderTrackRelation/add",
    user_orderTrackRelation_update: _PROXY.user_center_service + "/api/orderTrackRelation/update",
    user_orderTrackRelation_getByOrderInfoId: _PROXY.user_center_service + "/api/orderTrackRelation/getByOrderInfoId",
    user_orderTrackRelation_idUpdate: _PROXY.user_center_service + "/api/orderTrackRelation/idUpdate",
    user_orderTrackRelation_getListToday: _PROXY.user_center_service + "/api/orderTrackRelation/getListToday",
    user_orderTrackRelation_getTodayMemberList: _PROXY.user_center_service + "/api/orderTrackRelation/getTodayMemberList",
    user_orderTrackRelation_sendVisitMsg: _PROXY.user_center_service + "/api/orderTrackRelation/sendVisitMsg",

    user_message_backMessage: _PROXY.user_center_service + "/api/message/backMessage",
    user_message_backMessageMark: _PROXY.user_center_service + "/api/message/backMessageMark",

    user_soundDynamic_list: _PROXY.user_center_service + "/api/soundDynamic/selectDynamicList",
    user_soundDynamic_add: _PROXY.user_center_service + "/api/soundDynamic/add",
    user_soundDynamic_update: _PROXY.user_center_service + "/api/soundDynamic/updateDynamic",
    user_soundDynamic_delete: _PROXY.user_center_service + "/api/soundDynamic/deleteDynamic",
    user_soundDynamic_getById: _PROXY.user_center_service + "/api/soundDynamic/selectDynamicById",

    user_browse_memberBrowse: _PROXY.user_center_service + "/api/browse/memberBrowse",

    user_orderStaffRelation_list: _PROXY.user_center_service + "/api/orderStaffRelation/list",
    user_orderStaffRelation_add: _PROXY.user_center_service + "/api/orderStaffRelation/add",
    user_orderStaffRelation_delete: _PROXY.user_center_service + "/api/orderStaffRelation/delete",

    //商品
    product_goods_list: _PROXY.product_service + "/api/goods/list",
    product_goods_add: _PROXY.product_service + "/api/goods/add",
    product_goods_update: _PROXY.product_service + "/api/goods/update",
    product_goods_delete: _PROXY.product_service + "/api/goods/delete",
    product_goods_getById: _PROXY.product_service + "/api/goods/getById",
    product_goods_batchUpdate: _PROXY.product_service + "/api/goods/batchUpdate",
    product_goods_orgGoodsList: _PROXY.product_service + "/api/goods/orgGoodsList",
    product_goods_batchAddOrgGoods: _PROXY.product_service + "/api/goods/batchAddOrgGoods",

    //商品param
    product_goodsParam_list: _PROXY.product_service + "/api/goodsParam/list",
    product_goodsParam_add: _PROXY.product_service + "/api/goodsParam/add",
    product_goodsParam_update: _PROXY.product_service + "/api/goodsParam/update",
    product_goodsParam_delete: _PROXY.product_service + "/api/goodsParam/delete",
    product_goodsParam_getById: _PROXY.product_service + "/api/goodsParam/getById",
    product_goodsParam_getParents: _PROXY.product_service + "/api/goodsParam/getParents",
    product_goodsParam_getchildren: _PROXY.product_service + "/api/goodsParam/getchildren",

    //品牌接口
    product_goodsBrand_list: _PROXY.product_service + "/api/goodsBrand/list",
    product_goodsBrand_add: _PROXY.product_service + "/api/goodsBrand/add",
    product_goodsBrand_update: _PROXY.product_service + "/api/goodsBrand/update",
    product_goodsBrand_delete: _PROXY.product_service + "/api/goodsBrand/delete",
    product_goodsBrand_getById: _PROXY.product_service + "/api/goodsBrand/getById",
    product_goodsBrand_listAll: _PROXY.product_service + "/api/goodsBrand/list",

    //商品分类
    product_goodsType_list: _PROXY.product_service + "/api/goodsType/list",
    product_goodsType_add: _PROXY.product_service + "/api/goodsType/add",
    product_goodsType_update: _PROXY.product_service + "/api/goodsType/update",
    product_goodsType_delete: _PROXY.product_service + "/api/goodsType/delete",
    product_goodsType_getById: _PROXY.product_service + "/api/goodsType/getById",
    product_goodsType_getParents: _PROXY.product_service + "/api/goodsType/getParents",
    product_goodsType_getchildren: _PROXY.product_service + "/api/goodsType/getchildren",

    // 商品规格
    product_goodsSpec_list: _PROXY.product_service + "/api/goodsSpec/list",
    product_goodsSpec_add: _PROXY.product_service + "/api/goodsSpec/add",
    product_goodsSpec_update: _PROXY.product_service + "/api/goodsSpec/update",
    product_goodsSpec_delete: _PROXY.product_service + "/api/goodsSpec/delete",
    product_goodsSpec_getById: _PROXY.product_service + "/api/goodsSpec/getById",

    // 机构合作申请
    product_cooperateApply_list: _PROXY.product_service + "/api/cooperateApply/list",
    product_cooperateApply_add: _PROXY.product_service + "/api/cooperateApply/add",
    product_cooperateApply_update: _PROXY.product_service + "/api/cooperateApply/update",
    product_cooperateApply_delete: _PROXY.product_service + "/api/cooperateApply/delete",
    product_cooperateApply_authBrand: _PROXY.product_service + "/api/cooperateApply/authBrand",
};

_PERMISSIONS = sessionStorageUtils.getJson(storageKey.sessionStorageKey.permCodes)//设置权限
